<div class="bgc-w box box-primary">
    <div class="box-header">
        <a class="label label-success" href="planedit?pid=-1"><span class="glyphicon glyphicon-plus"></span>
            新增
        </a>

        <div class="input-group" style="width:150px;float:right;top:-5px">
            <input type="text" class="form-control input-sm pull-right baseKey" value="${(baseKey)!''}"
                   placeholder="查找..."/>
            <div class="input-group-btn" style="top:-1px;">
                <a class="btn btn-sm btn-default glyphicon glyphicon-search btn-change baseKetsubmit"></a>
            </div>
        </div>
    </div>
    <div class="box-body">
        <div class="table" style="padding-top: 15px;">
            <div class="table-responsive">
                <table class="table table-hover table-striped">
                    <tr class="table-header">
                        <th scope="col" class="paixu thistype" style="color:blue;">类型
                            <#if type?? && icon??>
                                <span class="glyphicon ${icon}"></span>
                            </#if>
                        </th>
                        <th scope="col">标题</th>
                        <th scope="col"><span class="paixu thistime" style="color:blue;">发布时间
						<#if time?? && icon??>
                            <span class="glyphicon ${icon}"></span>
                        </#if>
						</span></th>
                        <th scope="col">发布人</th>
                        <th scope="col">部门</th>
                        <th scope="col"><span class="paixu thisstatus" style="color:blue;">状态
						<#if status?? && icon??>
                            <span class="glyphicon ${icon}"></span>
                        </#if>
						</span></th>
                        <th scope="col">附件</th>
                        <th scope="col">操作</th>
                    </tr>

                    <#if plist??>
                        <#list plist as plan>
                            <tr>
                                <td>
                                    <#--   <#list typelist as t>
                                           <#if plan.typeId==t.typeId>${t.typeName}</#if>
                                       </#list>-->
                                    ${plan.aoaTypeList.typeName}
                                </td>

                                <td>
                                    <#if plan.label??>
                                        【${plan.label}】${plan.title}
                                    </#if>
                                </td>
                                <td>
                                    ${plan.createTime}
                                </td>

                                <td>
                                    ${plan.aoaUser.userName}
                                </td>

                                <td>
                                    ${plan.aoaUser.dept.deptName}
                                </td>
                                <td>
                                    <#--                                    <#list statuslist as s>-->
                                    <#--                                        <#if plan.statusId==s.statusId>-->
                                    <span class="label ${plan.aoaStatusList.statusColor}">${plan.aoaStatusList.statusName}</span>
                                    <#--                                    </#if>-->
                                    <#--                                    </#list>-->
                                </td>
                                <td>
                                    <#if plan.attachId??>
                                    <a style="color:#337ab7;" href="${plan.aoaAttachmentList.attachmentPath}">
                                        <span class="glyphicon glyphicon-paperclip"></span>
                                        </#if>
                                </td>
                                <td>
                                    <a href="planedit?pid=${plan.planId}&page=${page.number}" class="label xiugai"><span
                                                class="glyphicon glyphicon-edit"></span> 修改</a>
                                    <a onclick="{return confirm('删除该记录将不能恢复，确定删除吗？');};"
                                       href="plandelete?pid=${plan.planId}&page=${page.number}"
                                       class="label shanchu"><span
                                                class="glyphicon glyphicon-remove"></span> 删除</a>
                                </td>
                            </tr>
                        </#list>
                    </#if>

                </table>
            </div>
        </div>
    </div>


    <#include "/common/paging.ftl">

</div>